//
//  CodebaseAlicloudSDK.h
//  CodebaseAlicloudSDK
//
//  Created by Theo Chen on 2020/2/18.
//

#import <UIKit/UIKit.h>
#import <Lame/lame.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^CallbackHandler)(NSString * _Nullable mp3FilePath);
typedef struct LameConfig LameConfig;

struct LameConfig {
    int sampleRateKey;
    int channelsCount;
    /* 2=high 5 = medium 7=low 音质*/
    int quality;
};

@interface MirrorLame : NSObject

- (void)coverPCMFile:(NSString *)sourceFilePath toMP3Path:(NSString *)mp3FilePath withConfig: (LameConfig)config
andCallback:(CallbackHandler)callback;

@end

NS_ASSUME_NONNULL_END
